package com.ruoyi.neusoft.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.neusoft.mapper.AiIdentifyPublishHisTMapper;
import com.ruoyi.neusoft.domain.AiIdentifyPublishHisT;
import com.ruoyi.neusoft.service.IAiIdentifyPublishHisTService;
import com.ruoyi.common.core.text.Convert;

/**
 * 智能AI区域发布版本历史Service业务层处理
 * 
 * @author AI
 * @date 2023-12-06
 */
@Service
public class AiIdentifyPublishHisTServiceImpl implements IAiIdentifyPublishHisTService 
{
    @Autowired
    private AiIdentifyPublishHisTMapper aiIdentifyPublishHisTMapper;

    /**
     * 查询智能AI区域发布版本历史
     * 
     * @param uuid 智能AI区域发布版本历史主键
     * @return 智能AI区域发布版本历史
     */
    @Override
    public AiIdentifyPublishHisT selectAiIdentifyPublishHisTByUuid(Long uuid)
    {
        return aiIdentifyPublishHisTMapper.selectAiIdentifyPublishHisTByUuid(uuid);
    }

    /**
     * 查询智能AI区域发布版本历史列表
     * 
     * @param aiIdentifyPublishHisT 智能AI区域发布版本历史
     * @return 智能AI区域发布版本历史
     */
    @Override
    public List<AiIdentifyPublishHisT> selectAiIdentifyPublishHisTList(AiIdentifyPublishHisT aiIdentifyPublishHisT)
    {
        return aiIdentifyPublishHisTMapper.selectAiIdentifyPublishHisTList(aiIdentifyPublishHisT);
    }

    /**
     * 新增智能AI区域发布版本历史
     * 
     * @param aiIdentifyPublishHisT 智能AI区域发布版本历史
     * @return 结果
     */
    @Override
    public int insertAiIdentifyPublishHisT(AiIdentifyPublishHisT aiIdentifyPublishHisT)
    {
        return aiIdentifyPublishHisTMapper.insertAiIdentifyPublishHisT(aiIdentifyPublishHisT);
    }

    /**
     * 修改智能AI区域发布版本历史
     * 
     * @param aiIdentifyPublishHisT 智能AI区域发布版本历史
     * @return 结果
     */
    @Override
    public int updateAiIdentifyPublishHisT(AiIdentifyPublishHisT aiIdentifyPublishHisT)
    {
        return aiIdentifyPublishHisTMapper.updateAiIdentifyPublishHisT(aiIdentifyPublishHisT);
    }

    /**
     * 批量删除智能AI区域发布版本历史
     * 
     * @param uuids 需要删除的智能AI区域发布版本历史主键
     * @return 结果
     */
    @Override
    public int deleteAiIdentifyPublishHisTByUuids(String uuids)
    {
        return aiIdentifyPublishHisTMapper.deleteAiIdentifyPublishHisTByUuids(Convert.toStrArray(uuids));
    }

    /**
     * 删除智能AI区域发布版本历史信息
     * 
     * @param uuid 智能AI区域发布版本历史主键
     * @return 结果
     */
    @Override
    public int deleteAiIdentifyPublishHisTByUuid(Long uuid)
    {
        return aiIdentifyPublishHisTMapper.deleteAiIdentifyPublishHisTByUuid(uuid);
    }
}
